CREATE TABLE [dbo].[DnnProduct_AutomaticStuckOrderHandling_LastOrderStatuses]
(
[LastOrderStatusesId] [int] NOT NULL IDENTITY(1, 1),
[Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastOrderDateTime] [datetime] NOT NULL,
[LastOrderStatusCode] [int] NOT NULL,
[Action] [varchar] (2048) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Timestamp] [datetime] NOT NULL,
[StoreURL] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StoreAdminURL] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OrderNumber] [int] NULL,
[PWVersion] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_AutomaticStuckOrderHandling_LastOrderStatuses] ADD CONSTRAINT [PK_DnnProduct_AutomaticStuckOrderHandling_LastOrderStatuses] PRIMARY KEY CLUSTERED  ([LastOrderStatusesId]) ON [PRIMARY]
GO
